package net.minecraft.src;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import net.minecraft.src.NBTBase;

public class NBTTagShort extends NBTBase {

    public short shortValue;


    public NBTTagShort() {
        super();
    }

    public NBTTagShort(short var1) {
        super();
        this.shortValue = var1;
    }

    void writeTagContents(DataOutput var1) throws IOException {
        var1.writeShort(this.shortValue);
    }

    void readTagContents(DataInput var1) throws IOException {
        this.shortValue = var1.readShort();
    }

    public byte getType() {
        return (byte)2;
    }

    public String toString() {
        return "" + this.shortValue;
    }
}
